#include"definition.h"

void file_write(string a,string b,int n,int m,graph g)
{
	fstream ofs;
	ofs.open("register_change.txt", ios::app);
	ofs << a << b << g.city[n] << " --> " << g.city[m] << endl;
	ofs.close();
}

void file_write(string a, string b)
{
	fstream ofs;
	ofs.open("register_change.txt", ios::app);
	ofs << a << b << endl;
	ofs.close();
}